#include<iostream>
using namespace std;
int main()
{
	int a1, a2, n;
	cin >> a1 >> a2 >> n;
	int q;
	q = a2 - a1;
	cout << a1 + (n - 1) * q;
	return 0;
}